package com.java.second_goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户对象 tb_user
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_user")
public class User extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /** 用户名 */
    private String username;

    /** 手机号 */
    private String phone;

    /** 密码 */
    private String password;

    /** 头像URL */
    private String avatar;

    /** 积分 */
    private Integer points;

    /** 是否新用户 */
    private Boolean isNewUser;

    /** 状态：1-正常，0-禁用 */
    private Integer status;

    private Integer userType;
}